package com.yfp.machine.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 设备温度记录
 * 
 * @CreateDate: 2024/9/24 14:34
 * @UpdateUser: 
 * @UpdateDate: 2024/9/24 14:34
 * @UpdateRemark: 暂无修改
 * @Version: 1.0
 */
@Data
@Tag(name = "设备温度记录")
public class MachineTemp implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "主键ID")
    private Long id;
    @Schema(description = "设备ID")
    private String machineId;
    @Schema(description = "温度")
    private Integer temp;
    @Schema(description = "上报时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
